DetailLogMessage Constructor(LogMessageSeverity,LogWriteMode,String,String,Int32,Exception,Boolean,String,String,String,Object[])
In This Topic
Creates a DetailLogMessage object with specified LogWriteMode behavior, Exception object, and XML details string.
Syntax
'Declaration
Public Function New( _
ByVal As LogMessageSeverity, _
ByVal As LogWriteMode, _
ByVal As String, _
ByVal As String, _
ByVal As Integer, _
ByVal As Exception, _
ByVal As Boolean, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal ParamArray () As Object _
)
public DetailLogMessage(
LogMessageSeverity ,
LogWriteMode ,
string ,
string ,
int ,
Exception ,
bool ,
string ,
string ,
string ,
params object[]
)
Parameters
- severity
- The severity of the log message.
- writeMode
- Whether to queue-and-return or wait-for-commit.
- logSystem
- The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
- categoryName
- The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
- skipFrames
- The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
- exception
- An exception associated with this log message (or null for none).
- attributeToException
- True if the call stack from where the exception was thrown should be used for log message attribution
- detailsXml
- Optional. An XML document with extended details about the message. Can be null.
- caption
- A single line display caption.
- description
- Optional. A multi-line description to use which can be a format string for the arguments. Can be null.
- args
- Optional additional args to match up with the formatting string.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also